package edu.hnu.cloudflight.android;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.widget.TextView;

public class FlightNotificationActivity extends Activity {

	private TextView msgText;
	private TextView titleText;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_flight_notification);
		msgText = (TextView) findViewById(R.id.flightnotif_text_id_msg);
		titleText =(TextView) findViewById(R.id.flightnotif_text_id_title);
		String msg = getIntent().getStringExtra("content");
		String title = getIntent().getStringExtra("title");
		titleText.setText(title);
		msgText.setText(msg);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.flight_notification, menu);
		return true;
	}

}
